package sync_config

import (
	"net/http"
	"news_for_deepseek_interface/model"
	"news_for_deepseek_interface/model/sync"

	"github.com/gin-gonic/gin"
)

func Detail(c *gin.Context) {
	db := model.GetInstance().DB

	var syncConfig sync.SyncConfigModel
	db.Model(&sync.SyncConfigModel{}).First(&syncConfig)

	c.JSON(http.StatusOK, gin.H{
		"code": 0,
		"msg":  "success",
		"data": syncConfig,
	})
}
